﻿@model csharp_books_415.Models.BookCreateVm
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@using (Html.BeginForm())
{
    <div>
        @Html.LabelFor(model => model.Book.Title)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.Title)
    </div>
    <div>
        @Html.LabelFor(model => model.Book.AuthorId)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.AuthorId)
    </div>
    <div>
        @Html.LabelFor(model => model.Book.IsBestSeller)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.IsBestSeller)
    </div>
    <div>
        @Html.LabelFor(model => model.Book.PageCount)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.PageCount)
    </div>

    <div>
        @Html.LabelFor(model => model.Book.Published)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.Published)
    </div>




    <div>
        <button type="submit">Create Book</button>
    </div>
}

